package com.itheima.exception;

//自定义异常  业务异常
//通过定义运行时期异常,方便代码书写 因为运行时异常自动抛出
public class BusinessException extends RuntimeException{
    //构造方法

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);//接收异常信息并转化
    }
}
